package com.example.emvoider.net;

/**
 * Created by 阿炜啊 on 2020/7/10.
 */


import com.example.emvoider.bean.Bean;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.subscribers.ResourceSubscriber;
import retrofit2.http.GET;
public interface ApiService {

    //baseurl以 "/"结尾
    String sUrl = "https://gank.io/api/";


    //被观察者Observable
    //观察者Observer
    @GET("data/%E7%A6%8F%E5%88%A9/10/2")
    Observable<Bean> getData();

    //带背压策略
    //被观察者:Flowable
    //观察者:ResourceSubscriber
    @GET("data/%E7%A6%8F%E5%88%A9/10/2")
    Flowable<Bean> getData2();
}
